<template>
	<view>
		<slot></slot>
		<sb-center v-if='loading'>
			<u-loading mode="flower" size="60" />
		</sb-center>
	</view>
</template>

<script>
	export default {
		name: "sb-loading-container",
		data() {
			return {
				loading: false
			};
		},
		methods: {
			show() {
				this.loading = true
			},
			hide() {
				this.loading = false
			}
		},
	}
</script>

<style>

</style>
